package com.itheima.model.common.feign.fallback.client;

import com.itheima.model.common.pojos.Trade;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-log")
public interface LogClient {

    /**
     * 记录日志
     */
    @PostMapping("/log/record")
    void recordLog(@RequestBody Trade trade);

}
